package cn.itcast.bean;

import java.util.Objects;

public class UmPassword {
    private int id;
    private String uid;
    private String password;

    public UmPassword(String uid, String password) {
        this.uid = uid;
        this.password = password;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UmPassword that = (UmPassword) o;
        return id == that.id &&
                Objects.equals(uid, that.uid) &&
                Objects.equals(password, that.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, uid, password);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UmPassword() {
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String unum) {
        this.uid = unum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UmPassword{" +
                "uid=" + uid +
                ", password=" + password +
                '}';
    }
}
